/**  
* @author 
* @date 2015年12月19日 下午1:24:11
* @version V1.0  
* <b>Copyright (c)</b> 
*/
package com.mybatis.generator.core;

/**
* @author 
* @date 2015年12月19日 下午1:24:11
*/
public class Column {
	
	private String name;
	
	private String propertyName;
	
	private String dataType;
	
	private String jdbcType;
	
	private boolean isPrimaryKey;
	
	private String comment;
	
	private String getterName;
	
	private String setterName;

	
	public Column(String name, String dataType, String comment) {
		this.name = name;
		this.dataType = dataType;
		this.comment = comment;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPropertyName() {
		return propertyName;
	}

	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	public String getJdbcType() {
		return jdbcType;
	}

	public void setJdbcType(String jdbcType) {
		this.jdbcType = jdbcType;
	}

	public boolean isPrimaryKey() {
		return isPrimaryKey;
	}

	public void setPrimaryKey(boolean isPrimaryKey) {
		this.isPrimaryKey = isPrimaryKey;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getGetterName() {
		return JavaBeanUtils.getGetterMethodName(this.propertyName);
	}

	public String getSetterName() {
		return JavaBeanUtils.getSetterMethodName(this.propertyName);
	}
}
